package com.wiloon.test.servlet;

/**
 * Created by wiloon on 1/3/14.
 */

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.io.*;

import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7838637003770858621L;
	private static Logger logger = LogManager.getLogger(HelloWorld.class
			.getName());

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		logger.debug("hello world do get;");
		response.setContentType("text/html");
		PrintWriter out = response.getWriter();
		out.println("<html><head><title>");
		out.println("This is my first Servlet");
		out.println("</title></head><body>");
		out.println("<h1>Hello,World!</h1>");
		out.println("</body></html>");

	}
}
